package Text.Text003;

public class Human {
//    人的共性
    private String name;
    private String job;

//    人都会吃饭睡觉打豆豆
    public void eat(){
        System.out.println("吃饭");
    }
    public void sleep(){
        System.out.println("睡觉");
    }

//    ************************

    public Human() {
    }

    public Human(String name, String job) {
        this.name = name;
        this.job = job;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }
}
